<?php get_header(); ?>

<div id="content" class="narrowcolumn">
	<?php if (have_posts()) : ?>
	
		<h3 class="pagetitle">Résultats de recherche</h3>
		<!--<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; Articles plus anciens') ?></div>
			<div class="alignright"><?php previous_posts_link('Articles plus récents &raquo;') ?></div>
		</div>
		-->
		<ul>
		<?php while (have_posts()) : the_post(); ?>
			<li>
				<div id="post-excerpt">
        			<span id="postTitle" class="loud"><a href="<?php the_permalink();?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a>&nbsp;<a href="<?php comments_link(); ?>" class="commentsLink">(<?php echo get_comments_number() == '-1' ? '0' : get_comments_number(); ?>)</a></span>
        			<span class="quiet small">Ajouté le <?php echo format_date($post->post_date); ?>, sous <?php the_category(','); ?></span>
    			</div>
    		</li>
		<?php endwhile; ?>
		</ul>
		
		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; Articles plus anciens') ?></div>
			<div class="alignright"><?php previous_posts_link('Articles plus récents &raquo;') ?></div>
		</div>
		
	<?php else : ?>
		<h2 class="center">Aucun article trouvé. Essayer une autre recherche ?</h2>
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
	<?php endif; ?>
</div>
<?php get_footer(); ?>